package org.firebug.spring.boot.swagger.web.bean.core;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Response<T> {
    public static <T> Response<T> getInstance(int code, String message, T data) {
        return new Response(code, message, data);
    }

    private int code;
    private String message;
    private T data;
}
